home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / cre8v11.zip / GO.BAT < prev    next >
DOS Batch File  |  1993-01-07  |  1KB  |  47 lines

  1. :* --version 1.01, 1-7-93
  2. :* --written by Don Hancock
  3. :* --9758 Sandridge Drive
  4. :* --Sandy, UT  84092-3035
  5. @echo off
  6. :* --This Deletes any OLD files left in the \Work1\ subdirectory.
  7. :* --This eliminates any possibility of new files mixing with old.
  8. ECHO.
  9. :* --Zips up the junk Files, if any, then Deletes that Zip file.
  10. pkzip -m \work1\junk~~ \work1\*.*
  11. del \work1\junk~~.zip
  12. :* --Changes to the storage directory.
  13. cd\work
  14. :* --Unzips files from the storage area to the \Work1 subdirectory.
  15. pkunzip %1 \work1
  16. :* --Changes to the working directory.
  17. cd\work1
  18. :* --Runs the program (with switches, if needed).
  19. %1 %2
  20. cls
  21. echo.
  22. echo.
  23. echo.
  24. echo.
  25. echo.
  26. :* --Ask if everything is OK
  27. :* --This gives you a chance to break out and edit or
  28. :* --change some files before they are achived back.
  29. ECHO Did Everything Go O.K.?
  30. ECHO.
  31. echo If not, or if you want to change or edit some files,
  32. echo escape from this batch file by using the {CTRL}+{BREAK} key
  33. echo combination.  Remember to CREATE another archive if you make
  34. echo any changes or they won't be saved.
  35. echo.
  36. echo Did you register or at least send a Thank You Card ?
  37. echo.
  38. PAUSE
  39. cls
  40. :* --Make sure we're where we want to be.
  41. cd\work1
  42. :* --Zip & Move (delete) back to storage area, Add changed files (-U)
  43. pkzip -mu \work\%1 *.*
  44. :* --Returns to MENU (or change the next line to wherever you would like
  45. :* --to be after running program). Delete this line if it's a problem.
  46. menu
  47.